package com.dhcc.bpm.business.papc.mapper;

import com.dhcc.bpm.business.papc.entity.JobInfo;
import com.dhcc.bpm.business.papc.vo.JobInfoVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.common.vo.SelectVo;
import com.dhcc.bpm.modules.common.vo.SelectsVo;

import java.util.List;

/**
 *  Mapper 接口
 *
 * @author sjm
 * @since 2020-12-11
 */
public interface JobInfoMapper extends BaseMapper<JobInfo> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param jobInfo
	 * @return
	 */
	List<JobInfoVO> selectJobInfoPage(IPage page, JobInfoVO jobInfo);
	/**
	 * @Description 查询定时任务名称
	 * @Author wjh
	 * @Date 2020年12月20日11:43:25
	 * @param
	 **/
	List<SelectsVo> selectJobinfoName();
	//通过Id获取Job
	JobInfo findJobById(Integer jobId);
	List<JobInfo> findAll();
	List<Integer> getGroupNameNum();
}
